<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<s:property value="pegawai" />
<s:property value="#pegawai" />
<s:property value="%{pegawai}" />
<br />
<s:url id="gridUrl" action="modul/kontakpegawai/jqgrid">
	<s:param name="pegawai" value="%{#parameters.id}" />
</s:url>

<s:url id="crudUrl" action="modul/kontakpegawai/jqcrud">
	<s:param name="pegawai" value="%{#parameters.id}" />
</s:url>

<sjg:grid id="kontakPegawai" caption="Kontak Pegawai" dataType="json"
	href="%{gridUrl}" pager="true" navigator="true"
	navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
	navigatorAddOptions="{height:280,width:600,reloadAfterSubmit:true}"
	navigatorEditOptions="{height:280,width:600,reloadAfterSubmit:false}"
	navigatorEdit="true" navigatorView="false" navigatorDelete="true"
	navigatorAdd="true"
	navigatorDeleteOptions="{height:280,reloadAfterSubmit:true}"
	gridModel="list" rowList="10,15,20" rowNum="15" editurl="%{crudUrl}"
	editinline="true" onSelectRowTopics="rowselect"
	onEditInlineSuccessTopics="oneditsuccess" viewrecords="true"
	width="700" shrinkToFit="true" autowidth="true">
	<sjg:gridColumn name="id" id="id" frozen="true" index="id" title="ID"
		width="60" formatter="integer" editable="false" sortable="false"
		search="true" searchoptions="{sopt:['eq','ne','lt','gt']}" />
	<sjg:gridColumn name="jenisKontak" index="jenisKontak"
		title="Jenis Kontak" edittype="select" sortable="false"
		editable="true" hidden="false" editrules="{edithidden:true}"
		editoptions="{value:'HP:HP;EMAIL:EMAIL;WEBSITE:WEBSITE;SOCIALMEDIA:SOCIALMEDIA;NOKANTOR:NO KANTOR'}" />
	<sjg:gridColumn name="kontak" id="kontak" index="kontak"
		title="Informasi Kontak" width="250" editable="true" edittype="text"
		sortable="true" search="false" />
</sjg:grid>
